sortlistmodel: Make sort stable again
authorBenjamin Otte <otte@redhat.com>
Tue, 21 Jul 2020 02:06:13 +0000 (04:06 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 22 Jul 2020 12:30:49 +0000 (14:30 +0200)
commitc03383d3e5796e00ff167a44fdc5b0ff88bedf49
tree96ce1f9a11622f5cfbd355dab509e72bfa7e43cc
parenteaaa287078e00860b46f4013157a532381437975
sortlistmodel: Make sort stable again

Previously, the sort was not stable when items were added/removed while
sorting or the sort algorithm was changed.

Now the sort looks at the item position (via the key's location in the
keys array) to make sure each comparison stays stable with respect to
this position.
gtk/gtksortlistmodel.c